﻿<head>
    <meta name="viewport" content="width=device-width" />

    <link rel="stylesheet" href="/Content/bootstrap/css/bootstrap.min.css">
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />

    <title>Games Manager</title>
</head>

<body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <span class="navbar-brand" href="#">Games Manager</span>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="xactive"><a href="/"><span class="glyphicon glyphicon-home" aria-hidden="true"> Home </span></a></li>
                    <li><a href="/Game/Index"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"> Games </span></a></li>
                    <li><a href="/GameCategory/Index"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"> Categories </span></a></li>
                    @if (User.Identity.IsAuthenticated)
                    {
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" ariaexpanded="false">
                                Connecté sous : @User.Identity.Name
                                <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="/Auth/Logout"><span class="glyphicon glyphicon-off" aria-hidden="true"> Logout </span></a></li>
                            </ul>
                        </li>
                    }
                    else
                    {
                        <li><a href="/Auth/Login"><span class="glyphicon glyphicon-off" aria-hidden="true"> Login </span></a></li>
                    }
                </ul>
            </div>
        </div>
    </div>

    <div class="container">
        @RenderBody()
    </div>

    <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="/Content/bootstrap/js/bootstrap.min.js"></script>
</body>

